/*
	The Raja Toolkit.
	Copyright (C) 2011 Raja-Toolkit Foundation

	This library is free software; you can redistribute it and/or
	modify it under the terms of the GNU Lesser General Public
	License as published by the Free Software Foundation; either
	version 3.0 of the License, or (at your option) any later version.

	This library is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
	Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public
	License along with this library; if not, write to the Free Software
	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef RAJA_MATH
#define RAJA_MATH

#include "../types.hpp"

namespace raja
{
namespace math
{

/// universal pi
static const real32	pi	= 3.1415926536f;

/// degrees to radians conversion
static inline real32	deg2rad(real32 deg)
{
	return ((deg * pi) / 180.0f);
}

/// radians to degrees conversion
static inline real32	rad2deg(real32 rad)
{
	return ((rad * 180.0f) / pi);
}


}	// namespace math
}	// namespace raja

#include "vector.hpp"
#include "matrix.hpp"
#include "quaternion.hpp"
#include "transforms.hpp"
#include "primitives.hpp"
#include "queries.hpp"

#endif	// RAJA_MATH
